//
//  ZLPullMenuContentView.h
//  ZLPullMenu
//
//  Created by 赵振磊 on 2024/5/27.
//

#import <UIKit/UIKit.h>
#import "ZLPullMenuItem.h"

NS_ASSUME_NONNULL_BEGIN

@protocol ZLPullMenuContentViewDelegate <NSObject>
/// 即将选中回调
- (BOOL)pullMenuContentViewWillSelected:(NSIndexPath *)indexPath;
/// 选中回调
- (void)pullMenuContentViewDidSelected:(NSIndexPath *)indexPath;
@end

@interface ZLPullMenuContentView : UIView
/// 代理
@property (nonatomic, weak) id<ZLPullMenuContentViewDelegate> delegate;
/// 刷新菜单
- (void)reloadData:(NSArray<ZLPullMenuGroup *> *)groups;
/// 获取菜单高度
- (CGFloat)getMenuHeight;
@end

NS_ASSUME_NONNULL_END
